package com.js.purs.utils;

import com.js.purs.domain.dto.NoticeDto;

public class RemarkUtils {
    private static final ThreadLocal<NoticeDto> tl = new ThreadLocal<>();

    public static void saveNoticeDto(NoticeDto noticeDto){
        tl.set(noticeDto);
    }

    public static NoticeDto getNotice(){
        return tl.get();
    }

    public static void removeNotice(){
        tl.remove();
    }
}
